package com.dbingtech.iot.eventbus;

import com.google.common.eventbus.Subscribe;


public class C2 {

    @Subscribe
    public void process(SensorEvent event) {
        if(event instanceof SensorUpEvent) {
            System.out.println("evnet = " + ((SensorUpEvent) event).getValue());
        } else {
            System.out.println("evnet = " + event);
        }
    }


}
